package cn.tedu.luban.worker.main.mapper;
import cn.tedu.luban.worker.protocol.dos.WorkerDO;
import cn.tedu.luban.worker.protocol.query.WorkerDBPageQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkerMapper {
    void deleteByUserId(Long userId);

    void insert(WorkerDO workerDO);

    WorkerDO selectByUserId(Long userId);

    Long countWorker(WorkerDBPageQuery dbQuery);

    List<WorkerDO> selectWorkers(WorkerDBPageQuery dbQuery);

    void updateAuditStatus(WorkerDO workerDO);


    void updateCertStatus(WorkerDO aDo);
}
